-
Notifications
You must be signed in to change notification settings - Fork 64
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/1609 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
This works locally, but I wonder if we should use the muti-stage approach in the references documentation to keep down the size of the final built images? https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#node-gyp-alpine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The multistage build works quickly and well locally. I think this is safe to merge and will make local testing much easier. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know nothing at all about front end stuff, but I have a mac and saw a call for testing in slack, so I thought I'd give it a shot. Cloned the repo, switched to the branch, ran docker build . --build-arg RELEASE=v0-test -t openverse-frontend:latest
and docker did its thing, seemingly successfully. All looking good. But then this:
docker run --env-file .env -p 8443:8443/tcp openverse-frontend:latest
docker: open .env: no such file or directory.
See 'docker run --help'.
TIL how much I appreciate using just
in the catalog repo! I looked super quickly in the readme, but didn't see an obvious answer, so I hope it's not a pain for me to just leave this comment here. Happy to try more things or answer questions or whatever if that would help!
@rwidom Thanks for trying this! The
I agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works well on Mac, thank you so much for fixing the Docker build quickly, @krysal !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @krysal ! That sample .env
file did the trick.
Fixes
Fixes #1608 by @krysal
Description
Adding some extra packages as suggested fixes the image build.
Testing Instructions
docker build . --build-arg RELEASE=v0-test -t openverse-frontend:latest
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin